package com.hnevc.androiddemo0625;

import android.content.res.Resources;
import android.os.Bundle;
import android.widget.ListView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.hnevc.androiddemo0625.adapter.StudentInfoAdapter;

public class ThreeActivity extends AppCompatActivity {

    private ListView listView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.three_activity_layout);
        initView();
        initData();
        initEvent();
    }

    private void initView() {
        listView = findViewById(R.id.listview);
    }

    private void initData() {
        String[] names = {"钟离","魈","啦啦啦","666"};
        String[] studentid = {"202065110001","202065110002","202065110003","202065110004"};
        listView.setAdapter(new StudentInfoAdapter(ThreeActivity.this,names,studentid));
    }

    private void initEvent() {

    }
}
